<extend name="_layout/main" />
<block name="content">
	<div class="page-content">
		<div class="page-breadcrumbs">
			<ul class="breadcrumb">
				<li>
					<i class="fa fa-home"></i>
					<a href="{:U('dashboard/index')}">系统首页</a>
				</li>
				<li>
					<a href="{:U('user/index')}">管理中心</a>
				</li>
				<li class="active">支付方式</li>
			</ul>
		</div>
		<div class="page-body">
			<div class="row">
				<div class="col-xs-12 col-md-12">
					<div class="widget">
						<div class="widget-header bordered-bottom bordered-blue">
							<span class="widget-caption">修改支付方式</span>
						</div>
						<div class="widget-body">
							<div>
								<form role="form" class="form-horizontal" method="post" id="addForm" action="{:U('payment/edit')}">
									<input type="hidden" name="id" value="{$id}" />
									<div class="form-group ">
										<label for="name" class="col-sm-2 control-label no-padding-right">支付方式名称</label>
										<div class="col-xs-4">
											<input type="text" class="form-control" id="name" name="name" value="{$name}">
										</div>
									</div>
									<volist name="configParam" id="val">
										<div class="form-group ">
											<label class="col-sm-2 control-label no-padding-right">{$val}</label>
											<div class="col-xs-4">
												<input type="text" class="form-control" name="c[{$key}]" value="{$paramData[$key]|default=''}">
											</div>
										</div>
									</volist>
									<div class="form-group">
										<label for="description" class="col-sm-2 control-label no-padding-right"></label>
										<div class="col-xs-6">
											<p class="form-control-static">{$description}</p>
										</div>
									</div>

									
									
									<div class="form-group">
										<label class="col-sm-2 control-label no-padding-right">手续费设置</label>
										<div class="col-xs-6">
												<?php echo form::radio(array('按商品总额的百分比', '按固定金额'),'name="poundage_type" class="colored-success"', $poundage_type)?>
													<div class="pull-left"><input class="form-control" name="poundage" type="text" value="{$poundage|default=0.00}" /></div>
										</div>
									</div>
									<div class="form-group">
										<label class="col-sm-2 control-label no-padding-right">应用客户端</label>
										<div class="col-xs-6">
												<?php echo form::checkbox(array(1=>'PC电脑'),'name="client_pc" class="colored-success"', $client_pc)?>
                                                                                                <?php echo form::checkbox(array(1=>'微信/WAP端'),'name="client_wap" class="colored-success"', $client_wap)?>
                                                                                                <?php echo form::checkbox(array(1=>'APP端'),'name="client_app" class="colored-success"', $client_app)?>
										</div>

									</div>
									<div class="form-group">
										<label class="col-sm-2 control-label no-padding-right">状态</label>
										<div class="col-xs-6">
												<?php echo form::radio(array('禁用', '启用'),'name="status" class="colored-success"', $status)?>
										</div>
									</div>
									<div class="form-group">
										<label for="summary" class="col-sm-2 control-label no-padding-right">支付说明</label>
										<div class="col-xs-6">
											<?php echo form::editor('note',htmlspecialchars_decode($note))?>
										</div>
									</div>
									<div class="row">
										<div class="col-sm-offset-2 col-sm-10">
											<button type="submit" class="btn btn-blue ladda-button" data-style="expand-right" id="submitBtn"> <span class="ladda-label">确认保存</span></button>
										</div>
									</div>
								</form>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</block>

<block name="footer">

</block>